package com.netty;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;

import com.netty.componet.NettyServer;

@SpringBootApplication
@EnableAsync
public class NettyApplication implements CommandLineRunner {

	@Autowired
	NettyServer nettyServer;
	
	public static void main(String[] args) {
		SpringApplication.run(NettyApplication.class, args);
	}

	@Override
	public void run(String... args) throws Exception {
		// TODO Auto-generated method stub
		nettyServer.start();
	}
}
